<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户注册</title>
    <link rel="stylesheet" href="css/reset.css">
    <style>
        * {
            padding: 0px;
            margin: 0px;
            color: #fff;
        }
        input{
            outline: none;
            background: none;
            border:none;
            border-bottom:1px solid #fff;
        }

        /* 外部容器 */
        body {
            width: 100%;
            height: 100%;
            background: url("../images/bg.jpg");
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center 0;
            position: relative;
        }

        /* 注册表单 */
        .inner_box {
            position: absolute;
            width: 330px;
            height: 360px;
            left: 32%;
            top: 50%;
            transform: translate(-50%,30%);
            background-color: rgba(134, 221, 221, 0.219);
            box-shadow: 0 0 5px rgb(76, 219, 219);
            text-align: center;
        }
        .content{
            width: 100%;
            align-items: center;
            text-align: center;
        }
        .content td{
            height: 43px;
            margin-top: 10px;
        }
        .t1{
            width: 200px;
        }
        .dot_td{
            text-align: left;
        }
        .dot{
            width: 30px;
            margin-left: 20px;
        }
        .signIn_btn {
            height: 50px;
            width: 110px;
            line-height: 50px;
            margin: 15px;
            margin-top: 20px;
            background-color: rgba(134, 221, 221, 0.219);
            box-shadow: 0px 0px 5px rgb(76, 219, 219);
            text-align: center;
            cursor: pointer;
        }

    </style>
</head>
<body>

<%
    Object error = request.getAttribute("error");
    if(error != null) {
%>
<h2 style="color:red"><%= error %></h2>
<%
    }
%>

<form action="user?code=register" method="post" class="inner_box">
    <table cellspacing="0" cellpadding="10px" class="content">
        <tr>
            <h2>用户注册</h2>
        </tr>
        <tr>
            <td>姓名：</td>
            <td><input class="t1" type="text" name="username"></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input class="t1" type="password" name="password"></td>
        </tr>
        <tr>
            <td>性别：</td>
            <td class="dot_td">
                <input class="dot" type="radio" name="sex" value="男">男
                <input class="dot" type="radio" name="sex" value="女">女
            </td>
        </tr>
        <tr>
            <td>手机号：</td>
            <td><input class="t1" type="text" name="phone"></td>
        </tr>
        <tr>
            <td>邮箱：</td>
            <td><input class="t1" type="text" name="email"></td>
        </tr>
        <tr>
            <td colspan="2">
                <button type="submit" class="signIn_btn">注册</button>
                <button type="reset" class="signIn_btn">重置</button>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
